package com.mobclick.android;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Handler;
import android.os.Message;
import android.util.Log;

class a extends Handler
{
  public void handleMessage(Message paramMessage)
  {
    Intent localIntent;
    try
    {
      localIntent = new Intent("android.intent.action.VIEW");
      localIntent.setDataAndType(Uri.parse("file://" + c.a(this.a) + "/" + c.b(this.a)), "application/vnd.android.package-archive");
      c.c(this.a).startActivity(localIntent);
      return;
    }
    catch (Exception localException)
    {
      if (UmengConstants.testMode)
        Log.e("MobclickAgent", "Download send install intent error" + localException.getMessage());
      c.a(this.a, false);
    }
  }
}